package com.example.warehouse.mapper;

import com.example.warehouse.entity.userRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RoleUserMapper {


    @Delete("delete from user_role where user_id=#{userId}")
    Integer removeRoleByUid(Integer userId);

    @Insert("INSERT INTO user_role (role_id, user_id) values (#{role_id},#{user_id}) ")
    Integer AddUserRole(userRole userRole);



}
